<%@ page contentType="text/html; charset=utf-8" %>
<%@ include file="../common.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
      <link href="../CSS/style.css" rel="stylesheet">
    </head>
    <body>
 
<table width="100%"  border="0" cellspacing="0" cellpadding="0" background="../Images/bg.gif">
  <tr>
    <td>
<table width="777" height="609"  border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
    <td valign="top">
	<jsp:include page="Top.jsp"/>
	<table width="100%"  border="0" cellspacing="0" cellpadding="0" class="tableBorder_LTR">
      <tr>
        <td height="30" align="center" bgcolor="#eeeeee">≡≡≡ <span class="word_grey"><a href="book_add.jsp">添加图书信息</a></span> ≡≡≡</td>
      </tr>
    </table>
	<table width="100%" height="396"  border="0" cellpadding="0" cellspacing="0" class="tableBorder_LBR">
        <tr>
          <td width="26%" height="395" valign="top"><table width="100%"  border="0" cellspacing="-2" cellpadding="-2">
            <tr>
              <td width="55%" height="82" align="center" class="word_grey">&nbsp;<img src="../Images/reg.gif" width="84" height="54"></td>
              <td width="45%" align="left" class="word_grey">图书管理</td>
            </tr>
            <tr>
              <td height="112" colspan="2" valign="top" class="word_grey"><ul>
                <li> 添加图书信息：点击“添加图书信息”超链接可以进行图书信息的添加。</li>
                <li>修改图书信息：点击每条图书信息后面的“修改”按钮可以修改图书信息。</li>
                <li>删除图书信息：点击每条图书信息后面的“删除”按钮可以删除图书信息。</li>
                <li>推荐图书：如果想推荐图书，可以点击指定图书后的“修改”按钮。</li>
                <li>是否新书：如果想将图书信息发布到新书上架中，可以点击指定图书后的“修改”按钮。</li>
              </ul></td>
            </tr>
            <tr align="center">
              <td colspan="2" valign="middle" class="word_grey"></td>
            </tr>
          </table></td>
          <td width="5" valign="top" background="../Images/Cen_separate.gif"></td>
          <td width="73%" valign="top"><table width="100%" height="14"  border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td height="13" align="center">&nbsp;</td>
            </tr>
          </table>
            <table width="100%" height="48"  border="1" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bordercolordark="#CCCCCC" bordercolorlight="#FFFFFF">
              <tr>
                <td width="12%" height="27" align="center">
                  书号</td>
                <td width="42%" align="center">名称</td>
                <td width="24%" align="center">出版社</td>              
                <td width="11%" align="center">修改</td>
                <td width="11%" align="center">删除</td>
              </tr>
 <%
                            java.util.Collection l = bookDB.getManageBook();
                            java.util.Iterator i = l.iterator();
                            BookDetails bt = null;
                                         
                            while (i.hasNext()){
                                bt=(BookDetails) i.next(); 
                                      
                                %> 

              <tr style="padding:5px;">
                <td height="24" align="center"><%=bt.getBookid()%></td>
                <td align="center"><a href="book_detail.jsp?bookId=<%=bt.getBookid()%>"><%=bt.getTitle()%></a></td>
                <td align="center"><%=bt.getPubilsher()%></td>          
                <td align="center"><a href="book_modify.jsp?bookId=<%=bt.getBookid()%>"><img src="../Images/modify.gif" width="15" height="15"></a></td>
                <td align="center"><a href="book_del.jsp?bookId=<%=bt.getBookid()%>"><img src="../Images/del.gif" width="16" height="16"></a></td>
              </tr>
<%	
}
%>
            </table>
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  
</table>			</td>
        </tr>
      </table>
      <jsp:include page="copyright.jsp"/>
    </td>
  </tr>
</table>
</td>
  </tr>
</table>
             
    </body>
</html>
